package dd.prog2.exercises.set03;

public class FunctionTest {

	public static void main(String[] args) {
		Parabel p = new Parabel(1, -2, 2);
		Hyperbel h = new Hyperbel(1);
		ComposedFunction cf = new ComposedFunction(h, p);
//		Derivation d1 = new Derivation(cf,1);
		Derivation d2 = new Derivation(new Derivation(cf,0.07), 0.07);
//		Derivation d2 = new Derivation(new Derivation(new ComposedFunction(new Hyperbel(1), new Parabel(1, -2, 2)),0.07), 0.07);
//		System.out.println("Parabel:");
//		p.print(-5, 5, 0.1);
//		System.out.println("Hyperbel:");
//		h.print(-5, 5, 0.1);
		System.out.println("Composed Function:");
		cf.print(-5, 5, 0.1);
		System.out.println("Derivation");
		d2.print(-5, 5, 0.1);

	}

}
